<div id="testReportPreview" class="zs-ibox" style="width:98%;max-width:1250px;" ng-style="{'overflow':'auto','height':(Map_H - 100)+'px'}">
 	<h2 style="font-family: "Microsoft YaHei", verdana, tahoma;" align="center">测&nbsp;试&nbsp;报&nbsp;告</h2>
     <table class="zs-dataComparison-tab" >
     	<tr>
        	<td class="center" style="width:250px" colspan="2">排污企业名称</td>
           	<td class="center" style="width:500px" colspan="2">{{detailData.COMPANYNAME}}</td>
            <td class="center" style="width:250px" colspan="2">接样时间</td>
            <td class="center" style="width:250px" colspan="2">{{essential.FORMATSAMPLETAKETIME}}</td>
        </tr>
        <tr>
        	<td  class="center"  colspan="2">站点名称</td>
           	<td  class="center"  colspan="2">{{detailData.STATIONNAME}}</td>
            <td  class="center" colspan="2">样品分析时间</td>
            <td  class="center" colspan="2">
             <span ng-show="essential.FORMATSAMPLEANAENDTIME!=essential.FORMATSAMPLEANABEGINTIME&&
             essential.FORMATSAMPLEANAENDTIME!=''&&essential.FORMATSAMPLEANAENDTIME!=null">
           	 {{essential.FORMATSAMPLEANABEGINTIME}}~{{essential.FORMATSAMPLEANAENDTIME}} 
            </span> 
            <span ng-show="essential.FORMATSAMPLEANAENDTIME==''||essential.FORMATSAMPLEANAENDTIME==null">
           	 	{{essential.FORMATSAMPLEANABEGINTIME}}
            </span>
             <span ng-show="essential.FORMATSAMPLEANAENDTIME==essential.FORMATSAMPLEANABEGINTIME">
           	 {{essential.FORMATSAMPLEANABEGINTIME}} 
            </span>                 
            </td>
        </tr>
        <tr>
        	<td  class="center"  colspan="2">工况（%）</td>
           	<td  class="center"  colspan="2">正常稳定运行</td>
            <td  class="center"  colspan="2">样品类型</td>
            <td  class="center"  colspan="2">工业废水</td>
        </tr>
        <tr>
        	<td  class="center"  colspan="2">测试项目</td>
           	<td  class="center"  colspan="2">{{essential.S_DOMAINCAPTION}}</td>
            <td   class="center" colspan="2">在线仪器测量范围</td>
            <td  class="center" colspan="2">{{essential.DENSITY_ALARM_DOWMLIMIT}}-{{essential.DENSITY_ALARM_UPLIMIT}}</td>
        </tr>
        <tr > 
        	<td  class="center" colspan="8">实际水样测定</td>
        </tr>
        <tr >
        	<td class="center" style="width:250px">样品编号</td>
        	<td class="center" style="width:260px">采样时间</td>
        	<td class="center" style="width:120px">在线仪器测定值</td>
        	<td class="center" style="width:120px">实验室测定值</td>
        	<td class="center" style="width:125px">绝对误差</td>
        	<td class="center" style="width:125px">相对误差(%)</td>
        	<td class="center" style="width:140px">结果评定</td>
        	<td class="center" style="width:110px">备注</td>
        </tr>
        <tbody ng-show="param!='029'&&param!='024'&&$param!='028'">
        <tr  ng-show="WaterTableRowList.length==0||WaterTableRowList.length==undefined">
			<td class="center"></td>
			<td class="center"></td>				 
			<td class="center"></td>
			<td class="center"></td>
			<td class="center"></td>
			<td class="center"></td>
			<td class="center"></td>
			<td class="center"></td>
		</tr>  
        <tr ng-repeat="row in WaterTableRowList" ng-show="WaterTableRowList.length>0">
			<td class="center">{{row.SAMPLENUMBER}}</td>
			<td class="center">
				<span ng-show="row.FORMATSAMPLEENDTIME==''||row.FORMATSAMPLEENDTIME==null">
					{{row.FORMATSAMPLEBEGINTIME}}
				</span>
				<span ng-show="row.FORMATSAMPLEENDTIME!=''||row.FORMATSAMPLEENDTIME!=null">
					{{row.FORMATSAMPLEBEGINTIME}}~{{row.FORMATSAMPLEENDTIME}} 
				</span>		
			</td>				 
			<td class="center">{{row.ONLINEINSVALUE|number:2}}</td>
			<td class="center">{{row.LABORATORYVALUE|number:2}}</td>
			<td class="center">
			<span ng-show="row.ABSOLUTEERROR!=''&&row.ABSOLUTEERROR!=null">{{row.ABSOLUTEERROR|number:2}}</span>
				       	<span ng-show="row.LABORATORYVALUE==''||row.LABORATORYVALUE==null
				       ||row.ONLINEINSVALUE==''||row.ONLINEINSVALUE==null">&nbsp;</span>
			</td>
			<td class="center">
				 <span ng-show="row.RELATIVEERROR!=''&&row.RELATIVEERROR!=null">{{row.RELATIVEERROR|number:2}}%</span>
				       	<span ng-show="row.LABORATORYVALUE==''||row.LABORATORYVALUE==null
				       ||row.ONLINEINSVALUE==''||row.ONLINEINSVALUE==null">&nbsp;</span>		
			</td>
			<td class="center"><span ng-show="row.EVARESULTE=='0'">合格</span>	 
				      	 	<span ng-show="row.EVARESULTE=='1'">不合格</span></td>
			<td class="center"></td>
		</tr> 
		</tbody> 
		<tbody ng-show="param=='029'||param=='024'||param=='028'">
	        	<tr ng-repeat="row in WaterTableRowList">
	        	  	<td class="center" ng-show="$index%3==0&&row.SAMPLENUMBER!='平均值'&&$index<=8" rowspan="3">
				      {{row.SAMPLENUMBER}}
				    </td>				   
				    <td class="center" ng-show="$index%9==0&&row.SAMPLENUMBER!='平均值'&&$index<=8" rowspan="9">		
				   		<span ng-show="row.SAMPLEENDTIME==''||row.SAMPLEENDTIME==null">
							{{row.SAMPLEBEGINTIME}}
						</span>
						<span ng-show="row.FORMATSAMPLEENDTIME!=''||row.FORMATSAMPLEENDTIME!=null">
							{{row.SAMPLEBEGINTIME}}~{{row.SAMPLEENDTIME}} 
						</span>	
				   	</td>			 
				    <td class="center" ng-show="row.SAMPLENUMBER!='平均值'&&$index<=8">			    
				    	<span>{{row.ONLINEINSVALUE|number:2}}</span>
				    </td>
				     <td class="center" ng-show="$index%3==0&&row.SAMPLENUMBER!='平均值'&&$index<=8" rowspan="3">
				      {{row.LABORATORYVALUE|number:2}}
				    </td>
					<td class="center" ng-show="$index%9==0&&row.SAMPLENUMBER!='平均值'&&$index<=8" rowspan="9">
				       &nbsp;
				    </td>	
				    <td class="center" ng-show="$index%9==0&&row.SAMPLENUMBER!='平均值'&&$index<=8" rowspan="9">		      
				       	<span ng-show="row.LABORATORYVALUE!=''&&row.LABORATORYVALUE!=null
				       &&row.ONLINEINSVALUE!=''&&row.ONLINEINSVALUE!=null">{{row.RELATIVEERROR|number:2}}%</span>
				       	<span ng-show="row.LABORATORYVALUE==''||row.LABORATORYVALUE==null
				       ||row.ONLINEINSVALUE==''||row.ONLINEINSVALUE==null">&nbsp;</span>		       
				    </td>
				      <td class="center" ng-show="$index%9==0&&row.SAMPLENUMBER!='平均值'&&$index<=8" rowspan="9">				      
				      	 	<span ng-show="row.EVARESULTE=='0'">合格</span>	 
				      	 	<span ng-show="row.EVARESULTE=='1'">不合格</span>	 
				      	 	<span ng-show="row.EVARESULTE==''">&nbsp;</span>	 
				    </td>
				    <td class="center" ng-show="$index%9==0&&row.SAMPLENUMBER!='平均值'&&$index<=8" rowspan="9">
				       {{row.REMARK}}
				    </td>
				    <!--下标大于8-->
				    <td class="center" ng-show="($index-row.count)%3==0&&row.SAMPLENUMBER!='平均值'&&$index>9" rowspan="3">
				    {{row.SAMPLENUMBER}}
				    </td>				   
				    <td class="center" ng-show="($index-row.count)%9==0&&row.SAMPLENUMBER!='平均值'&&$index>9" rowspan="9">		
				   		<span ng-show="row.SAMPLEENDTIME==''||row.SAMPLEENDTIME==null">
							{{row.SAMPLEBEGINTIME}}
						</span>
						<span ng-show="row.FORMATSAMPLEENDTIME!=''||row.FORMATSAMPLEENDTIME!=null">
							{{row.SAMPLEBEGINTIME}}~{{row.SAMPLEENDTIME}} 
						</span>	
				   	</td>			 
				    <td class="center" ng-show="row.SAMPLENUMBER!='平均值'&&$index>9">				     
				    	<span>{{row.ONLINEINSVALUE|number:2}}</span>
				    </td>
				     <td class="center" ng-show="($index-row.count)%3==0&&row.SAMPLENUMBER!='平均值'&&$index>9" rowspan="3">
				      {{row.LABORATORYVALUE|number:2}}
				    </td>
					 <td class="center" ng-show="($index-row.count)%9==0&&row.SAMPLENUMBER!='平均值'&&$index>9" rowspan="9">
				     &nbsp;
				    </td>	
				    <td class="center" ng-show="($index-row.count)%9==0&&row.SAMPLENUMBER!='平均值'&&$index>9" rowspan="9">
				       			<span ng-show="row.LABORATORYVALUE!=''&&row.LABORATORYVALUE!=null
				       &&row.ONLINEINSVALUE!=''&&row.ONLINEINSVALUE!=null">{{row.RELATIVEERROR|number:2}}%</span>
				       	<span ng-show="row.LABORATORYVALUE==''||row.LABORATORYVALUE==null
				       ||row.ONLINEINSVALUE==''||row.ONLINEINSVALUE==null">&nbsp;</span>		       
				    </td>
				      <td class="center" ng-show="($index-row.count)%9==0&&row.SAMPLENUMBER!='平均值'&&$index>9" rowspan="9">
				      	 	<span ng-show="row.EVARESULTE=='0'">合格</span>	 
				      	 	<span ng-show="row.EVARESULTE=='1'">不合格</span>	 
				      	 	<span ng-show="row.EVARESULTE==''">&nbsp;</span>	 
				    </td>
				    <td class="center" ng-show="($index-row.count)%9==0&&row.SAMPLENUMBER!='平均值'&&$index>9" rowspan="9">
				       {{row.REMARK}}
				    </td>		
				    <!--平均值-->	
				  <td class="center" ng-show="row.SAMPLENUMBER=='平均值'" >
				    	{{row.SAMPLENUMBER}}
				    </td>				   
				    <td class="center" ng-show="row.SAMPLENUMBER=='平均值'">		
				   		—
				   	</td>			 
				    <td class="center" ng-show="row.SAMPLENUMBER=='平均值'">
						—
				    </td>
				     <td class="center" ng-show="row.SAMPLENUMBER=='平均值'">
				     	{{row.LABORATORYVALUE|number:2}}
				    </td>
					
				    <td class="center" ng-show="row.SAMPLENUMBER=='平均值'" >
				       —
				    </td>
				    <td class="center" ng-show="row.SAMPLENUMBER=='平均值'">
				      	— 
				    </td>
				    <td class="center" ng-show="row.SAMPLENUMBER=='平均值'" >
				      —
				    </td>
				     <td class="center" ng-show="row.SAMPLENUMBER=='平均值'" >
				      —
				    </td>
				</tr>
        	</tbody>
        <tr >
        	<td  class="center" colspan="8">质控样品测定（标准样品批号：{{Sampledata[0].STASAMPLEBATCHNUMBER}}, 浓度：{{Sampledata[0].STASAMPLECON}}）</td>
        </tr>
        <tr >
        	<td  class="center">样品编号</td>
        	<td  class="center">测试时间</td>
        	<td  class="center">测试结果</td>
        	<td  class="center">绝对误差</td>
        	<td  class="center">相对误差(%)</td>
        	<td  class="center">结果评定</td>
        	<td  class="center" colspan="2">备注</td>
        </tr>
          <tr  ng-show="Sampledata.length==0||Sampledata.length==undefined">
				    <td class="center" ></td>
				    <td class="center"></td>				 
				    <td class="center"></td>
				    <td class="center"></td>
				    <td class="center"></td>
				    <td class="center"> </td>
				    <td class="center" colspan="2"></td>				   
		</tr>  
       <tr  ng-repeat=" row in Sampledata" ng-show="Sampledata.length>0">
				    <td class="center" >			      
				       {{row.SAMPLENUMBER}}
				    </td>
				    <td class="center">				        
				        {{row.FORMATSAMPLEBEGINTIME}}-{{row.FORMATSAMPLEENDTIME}} 
				    </td>				 
				    <td class="center">				       
				       {{row.LABORATORYVALUE}}
				    </td>
				     <td class="center">				      			      
				  		<span ng-if="row.CONTRASTERROR!=''&&row.CONTRASTERROR!=null">{{row.CONTRASTERROR}}</span>
				       	<span ng-if="row.CONTRASTERROR==null||row.CONTRASTERROR==''"></span>
				    </td>
				     <td class="center">				      				       
				   			<span ng-show="row.LABORATORYVALUE!=''&&row.LABORATORYVALUE!=null
				       &&Sampledata[0].STASAMPLECON!=''&&Sampledata[0].STASAMPLECON!=null">{{row.RELATIVEERROR|number:2}}%</span>
				       	<span ng-show="row.LABORATORYVALUE==''||row.LABORATORYVALUE==null
				       ||Sampledata[0].STASAMPLECON==''||Sampledata[0].STASAMPLECON==null">&nbsp;</span>						       
				    </td>
				    <td class="center">				      				        	
				      	 	<span ng-show="row.EVARESULTE=='0'">合格</span>	 
				      	 	<span ng-show="row.EVARESULTE=='1'">不合格</span>	
				    </td>
				      <td class="center" colspan="2">				      		
				       {{row.REMARK}}
				    </td>				   
				</tr>  
        <tr>
        	<td  class="center" colspan="8">技术说明</td>
        </tr>
        <tr>
        	<td class="center"></td>
        	<td  class="center" style="min-width:120px;" colspan="2">方法</td>
        	<td  class="center" colspan="2" style="min-width:150px;">仪器名称</td>
        	<td  class="center">仪器型号</td>
        	<td  class="center">仪器出厂编号</td>
        	<td  class="center" style="min-width:60px;">检出限</td>
        </tr>
        <tr>
        	<td  class="center">实验室仪器</td>
        	<td  class="center" colspan="2">{{ScienceExplainData.LI_EXPMETHOD}}</td>
        	<td  class="center" colspan="2">{{ScienceExplainData.LI_INSTRUMENTNAME}}</td>
        	<td  class="center">{{ScienceExplainData.LI_INSTRUMENTTYPE}}</td>
        	<td  class="center">{{ScienceExplainData.LI_INSTRUMENTSERIALNUMBER}}</td>
        	<td  class="center">{{ScienceExplainData.LI_DETECTION_LIMIT}}</td>
        </tr>
        <tr>
        	<td  class="center">在线仪器</td>
        	<td  class="center" colspan="2">{{ScienceExplainData.TEST_METHODS}}</td>
        	<td  class="center" colspan="2">{{ScienceExplainData.NAME}}</td>
        	<td  class="center">{{ScienceExplainData.DEVICE_TYPENUM}}</td>
        	<td  class="center">{{ScienceExplainData.DEVICE_NUM}}</td>
        	<td  class="center">{{ScienceExplainData.DETECTION_LIMIT}}</td>
        </tr>
        <tr>
        	<td  class="center">比对结果</td>
        	<td  class="center" colspan="7">{{essential.FORMATCOMPARISONRESULT}}</td>
        </tr>
    </table>
   </div>
